Toolhead out of control...slamming into sides

The toolhead cover coming off has been a recurring theme in the forum. There are a number of threads such as this

But you’ll find more with the search function.

As for what can cause a bent nozzle, I have had that happen due to curling.

In your case though, I’d first check the toolhead cover for nozzle damage…