I completely disagree with the lady that told you go keep caged and get a wing clip!!!
No!
This too shall pass. If this is mostly a higher hormone peak + molt...for sure a miserable time. Yes they can launch from cage to protect territory, and fly to you to bite. This is a hardwired behavior given to them by nature , to help them overcome fear of large predators abd protect mate and young. There are a few steps to help modify this, and some human acceptance and best avoidance, till they come off that high.
First move the cage , even a few feet can help. Do a little re arrange of cage interior. Provide an alternative frustration device. I have tied a clump of Yucca chips, a mini bundle of shredee paper strip, a ball, and something they can bang. Its on the top of the cage by the door. ( I also have one inside the cage by the door , ) They grab it bang it, bite it, use it to display how tough they are. It evolved by accident, but so effective! That initiall burst of drama when they are let of the cage now gets turned on it. After they display, vent, get their brains back under control. I can get them and move them away from the cage to a neutral location, or have them fly to play stand, and they are nearly their normal lovely selves.
Increase time out of the cage and away from the cage. Increase activity, and mental stimulating. Get them foraging, do some interactive foraging with them. Watch bird tricks YouTube they have some really great foraging teachings videos. Its a great way to interact hands off. A board bird spends more time turning to hormonal behavior. Aldo burn up that excess energy.
Lower fatty foods, and sugary foods, and no warm or soft foods. Though they need a bump in protein for molt. I serve boild egg with some shell, an inch strip of boiled chicken, a few nuts. Feathers are 25% of body mass I think, abd nearly all protein. Yiu will find they are really craving protein during a molt. A bump in protein helps molt finish quicker too. And increase in home humidity helps, as provided shallow dish daily for baths if they chose. I use a casserole or sturdy serving dish with no more than 2 inches of water. Its available, and they can choose when to use. This also provides satisfaction in self choice. Sometimes I float plastic toys in the dish , they love it. More enrichment. For foraging you can float a veggies, or a bottle cap with a seed it 2 in it.
When they are in the "mood" or on top of the cage. Go slower , talk them down , give them a chance to do some macho displays before you go over. This has helped me and mine during a couple of hormones peaks. Keep some humor in your heart . I've watched this big display screaming, beating up toy. Thrn told them that w a really impressive! Now silly bird come over and give momma a kiss ( or a treat , do what safe and smart for you abd your bird)
More time out of the cage, not caged is the key. More time working on your bond, more time being g active, and mentally stimulating them. Moving and re arrange their territory all helps. Using your human brain to avoid, and knowing this surge will pass, some empathy for their hardwired behavior abd frustration