Posting pics would help, but since the leaves are yellowing most likely the cause is overwatering. Gnats often arrive due to fungus starting in the soil, which also comes from overwatering.
Recommendations in addition to backing off on the watering can't really be made until we have an idea of how old your plants are.