I had this when I sprouted a seed with light that was too weak. The poor thing stretched upwards and got very thin at the bottom, and fell over.
I just buried another inch of it to keep it upright and it survived the experience.
You can also buy anti-gnat stickies to grab the little things. Turns out they can’t resist the colour yellow. 😀