Yeah it sounds like I call an astral parasite. Same thing Christians call “demons” but they use that for everything so I avoid the term: this is the the one case it’s appropriate.
This sounds like your subconscious trying to tell you something with “fearful affect” was in your field. And it sounds like it may have attacked you personally, though that could be a coincidence. It’s not wort trusting appearances, it could be a ghost as well and that’s how your subconscious did it’s best to communicate something nasty was about, but a this point there’s no reason to take chances.
Banish and cleanse - you, your house, and your pets and close ones.
Here’s some banishing ideas. Forum Tutorials: Parasite Collection
After you have banished - they tend to come back.
So, right after you have banished, you want to “close the door behind them” with wards and shields. Unofficial Tutorials: Spiritual Hygiene & Defense Collection