Walnuts are considered a highly allergic food that can cause various digestive complications. Other common reasons for an upset stomach from eating walnuts are food intolerance, diverticulitis and food poisoning. It can lead to diarrhea, vomiting, nausea, stomach pain and cramping. Take plenty of water and avoid dehydration. If the symptoms are severe or persistent contact a physician. I hope it helps.
Best luck and regards!