Hello
What you are experiencing is called Body related anxiety.
Constant worrying that you will get the ulcers again perhaps?
I have experienced the pain of stomach ulcer myself,
It is excruciating, and it took a long time to recover.
Such an experience leaves you very cautious.
However , we need to understand thst it is a condition that is curable.
Include one routine from your ulcers days which is healthy for you.
For example, eating curd , reducing spices in your food etc can satisfy your anxiety,becuase you are doing something to prevent the situation from worsening.
Next Steps
for sleep- do a mild physical exercise before sleep, follow sleep hygiene, practice mindfulness.
Health Tips
if it feels incapacitating, please consult a counsellor.