White sores on foot & gums? 9 month old & not sleeping for 3 months!

My 9 month old son had been very grumpy for about a week. He has always been a bad sleeper, but during this week, he has been either waking up 8 times a night, or waking around 11-12 and keeping me up until 6 am. He has one white sore on his gums in the back where the molars would’ve.. & one on his foot that looks exactly the same (picture). The sore on his gums has been there for several weeks where as the one on his foot showed up yesterday. Not sure what to do or what is wrong with him. Should I take him to the doctor? No fever, breastfed, refusing 95% of the baby food I offer him (this started when he began teething) he hasn’t slept more than 2-3 hours at a time since he was 6 months old. He was an ok sleeper before (It started right before he got his first tooth & 3 months later, still hasn’t ended). I’m going insane tbh! SO is in a different country since LO was 4 months. Should be noted that he has severe GERD & has recently switched from Zantac to omeprazole on the 19th.