Aw sis, scary talaga yung feeling na yan especially when it's pointing to the back! A few of us had similar experiences during pregnancy and honestly, the weight of the baby plus the hormones and ligament stretching can cause some serious back and stomach pain, minsan talaga nakakaalarma pero mostly manageable lang with proper positioning and rest. Since you've been back and forth sa clinic na and the doctor mentioned ulcer concerns, I'd really suggest getting a second opinion or maybe a specialist check (OB-GYN together with a gastro maybe?) para ma-rule out talaga what's causing it at hindi ka na mag-worry every day. In the meantime, try sleeping on your left side with a pillow between your knees, eat smaller meals more frequently, and avoid lying flat right after eating, a few of my mum friends swore by these during their third trimester and it helped. Pero please don't delay the follow-up, mama, peace of mind is worth it para sa baby at sa iyo!