Go off the rails

Meaning: To behave badly or begin to develop in an unsuccessful way.

Example: His career went off the rails after a series of poor decisions.