Why is it that when I'm falling to sleep my heart begins to beat fast and I get sweaty with light headed? I can't sleep I have gastritis and gallstone

Anxiety? Sounds like an anxiety disorder. These generally have a good prognosis with therapy and/or medication. See your doctor for a more comete evaluation to find out. You'll be fine. It doesn't sound related to your stomach or gallbladder. Hope this helps!