idiom
go off the rails
Meaning
to start behaving in an unusual or uncontrolled way
Example
After losing his job, his life seemed to **go off the rails**.