dnd 5e – How can I protect myself like a flying archer?

Soon I will play with an Aarakocra Arcane Archer (the custom class) and I wonder how I can protect myself from magicians / other archers like a flying archer. I was thinking about putting myself right in front of the sun (it's hard to look directly at the sun, so it should be hard to point something right in front of him) and finally throw a cloud of fog over me if I'm in danger.

Anything else I can use?

I'm talking specifically about fights.

Thank you.