First thing to remember is not to panic. No one has ever died from a marijuana overdose. The effects will pass with some time. Try to focus on your breathing and remember its all in your head, enjoy the high.
Typically getting up and walking around will help ground you back to reality. You can also try eating a snack and always remember to stay hydrated, so don’t forget about the water.