I've never heard of this before, but has she started laying yet? This is a bit extreme, but I've dealt with hens who had bad nesting box anxiety, one of which was my EE hen, Twyla. Twyla never went to the extreme of your hen, but there was definitely something wrong with her mentally that was passed down to her offspring. She was known to randomly fly up into things for no reason at all (on rare occasions), then her son had a thing for randomly flying into the wall like he could perch there, despite there being nothing there. Her daughter inherited her nesting box anxiety, though thankfully not as bad.
Twyla's nesting box anxiety consisted of her scratching out all the nesting material, going in and out of the nesting box and that sometimes included going in and out of the coop as well. Her anxiety was definitely worse some times than others, but I always had to keep cardboard (and would need to replace it) on the bottom of the nesting boxes for when she scratched everything else out.
Again, I know nothing of this and have never heard of it, but if this was my bird (and I saw reason to do something about it), I would put her in a completely dark space for a time and see if that helps at all, even if it's just to calm her down. I would recommend trimming back her crest so she can see better because that could be part of the issue. Check over her whole body to ensure there's nothing stuck on her such as a loose fishing line or something like that, and check for any injuries. Make sure she also has a safe place to lay her eggs, even if you need to put curtains in the nesting boxes.
I wouldn't give her any sedatives. First, I'm recommending that you rule out any possible issue whether it be lack of sight, tangled, or even injured or sick in another way. Again, try calming her in a dark space and see if she'll come out of it. Worst comes to worse, I'd almost recommend giving her a "calming" CBD product, but I don't know if that's safe for chickens or how much and how often to dose her, and even if you can find that information out, that's for last resort.