Oof. I had the same thing happen to a rainbow BTA last year. I don’t think any meds are particularly helpful to nems, the best you can do is it place it somewhere it can be comfortable and not get itself into anymore trouble. Perhaps add a rock with some pores it can sink its foot into if you’re keeping it in that glass container. Don’t try feeding it at this point, I can tell you from experience this will cause more stress. And finally, get some sort of cover on your power heads to protect the nems from their own wanderlust!