So I just read your whole thread, it seems clear that pregnancy is out as a cause. But the big thing that hit me was she is acting just like my mare that had ulcers! Ulcers will definitely cause them to be touchy in the flank, they also lay down and don't want to get up. Another sign of the ulcers are in the stomach, as opposed to hind gut, they may stretch out their neck and curl their upper lip. Two things I would do right away, a small hole hay net so she can pick at hay all day and not have an empty stomach. Stop any sweet feed or treats, or anything containing molasses. I fed a ration balancer with alfalfa pellets, because the calcium helps neutralize stomach acid. Ask your vet about starting omneprazole, once a day, see if within a week her behavior greatly improves, if so You would probably want to give it for a month, then move her onto a u guard pellet or other feed type preventative.
The thing with banamine and ulcers is they initially feel better, but feel much worse as the banamine wears off because banamine is very hard on the stomach lining.
I don't know if that is what she has, but since it has been going on for several months, maybe worth thought.