I was wrong to assume the chickens were outside the coop when they panicked, but it wasn't clear from your initial post where they were.
@NatJ has come close to addressing the solution. What I will supply is the chicken psychology behind the chickens' behavior. In short, your chickens lack sufficient
cover to retreat under when they feel threatened.
Here's another one of my stories to illustrate what your chickens are thinking when they fly at the upper screening. I have a wing coming off my main run that looks a lot like your long portion. It's open on three sides and the only cover is the coop at the opposite end. The run has a solid roof, but that isn't the kind of cover they need when a land predator arrives.
The story starts with two renegade hens that I segregated in this coop and run due to behavior problems. The coop is raised but I had blocked off the underside to keep these hens separate from the rest of the flock in the adjoining run.
One day a bobcat happened by. It recognized chicken dinner when he saw these two, and he began rushing the chickens to get them to panic, hoping to flush them out where he could grab them. I witnessed most of this.
The hens were frantic to get out of the run, but they were too panicked to simply go into their coop. Instead they flung themselves against the sides of the run, and as "luck" would have it, I had forgotten to latch the door, and one hen managed to get out. She quickly became lunch.
If I had not blocked off the underside of the coop, the hens would have run under cover, huddled in a far dark corner, and waited the attack out instead of frantically trying to get out of a run where they felt completely
exposed with no place to hide.
As I see it, your solution is to design some sort of
cover. The chickens need to know they can hide some place when they feel threatened.