Check out Taoist practices, specifically the Microcosmic Orbit. When a lot of chi enters the head it can lead to what you describe. The key is to 'ground' yourself by learning to bringing it back down. Physically stroking down from your head to your belly imagining you're drawing electrical energy down and circling your hands at your belly can help (touch the tip of your tongue to the roof of your mouth and imagine you're running energy/electricity down through it down to your belly). It's safer to store energy in your navel, throwing off any excess into the Earth. This can stop you feeling spaced out.
Unfortunately I've not been entirely happy with most of the courses I've taken online though so can't really recommend one. I wasn't impressed with Michael Winn's courses [1] in general in case you stumble across his stuff, nor Ken Cohen. I'd suggest exploring books or look for other recommendations (The Tao Bums [2] could be a good place to start). The basics are pretty easy to pick up from books (but overall for meditation I'd say you need a real teacher, either in person or available for video tutoring/chats).
This is very bad and dangerous advice. Please don’t try to learn and practice advanced energy arts from books and the internet. At best you will waste your time, at worst you will mess yourself up.
Source: 15 years of practice under instruction of a master.
Unfortunately I've not been entirely happy with most of the courses I've taken online though so can't really recommend one. I wasn't impressed with Michael Winn's courses [1] in general in case you stumble across his stuff, nor Ken Cohen. I'd suggest exploring books or look for other recommendations (The Tao Bums [2] could be a good place to start). The basics are pretty easy to pick up from books (but overall for meditation I'd say you need a real teacher, either in person or available for video tutoring/chats).
[1] https://healingtaousa.com/ (seems to be giving a 500 at the moment)
[2] https://www.thedaobums.com/