HELP!!!!! Fruit flies

I have lived in my apartment 2 years now and EVERY summer we get fruit flies so bad! Like really fucking bad!!! I live on the second floor so it can get really hot. I keep my house clean and I don’t leave fruit or food out so I’m not understanding why I’m getting them. It gives me such bad anxiety to the point I have a panic attack.

What can I do to keep them away?!!!!