Some of my pullets had gone broody. One especially was on auto-peck if you got near enough to her in her nest.
Somehow I was able to eventually handle them to get them out of the box with no pecks.
I actually had to distract/ block some with an object for a while (usually my phone. The case side, camera out of the way. In case their peck did damage)
Easier if you start at her side instead of the front.
Hand at the side, go under, find a foot. Let the toes wrap around your hand/fingers. Support body and lift out of box. (Don't have thumb on top the shanks, between legs and body. Causes discomfort whether she's trying to sit or stand)
If you have a big hand and a small bird, you can do this one handed. If not, repeat with other hand on other side.
Then comes the flapping.