What causes my chain to derail at the rear when I accelerate?
It sounds like the combination of your chain and cassette / sprocket are at the end of their lives. Examine them for signs of wear.

To check a cassette for wear, look for pointy teeth. A non-worn cassette will have teeth with a fairly flat ends.

A worn cassette will have teeth that have become pointier.

To check your chain for wear, ideally you'd use a chain wear tool to check how much your bushings have been worn away. If you don't have one of these tools, you can kindof tell when a chain is worn out because it will feel like the bushings are a bit loose.

Alternately, a drivetrain generally wears out at around 10000 kms (~6000 miles). You can rack this amount up pretty quickly as a regular commuter.