What a tough situation. Have you considered a calming supplement? Maybe it’s a combination of things- rehabbing and not being ridden, wintertime, and then a new home too. Perhaps check hay and what grain they may be giving him to make sure it’s not sweet feed or something full of lots of sugars. Hope he calms down soon! My horse has done that occasionally and it’s embarrassing and unsafe.