go off the rails
idiomDefinition of go off the rails
informal
: to lose control and start to behave in a way that is not normal or acceptable
He was a promising student but he went off the rails after he started taking drugs.