I went through a similar spell recently. Went from being super motivated at one job, dragging my dubious co-workers kicking and screaming across the finish line, to playing video games most of the day and doing just enough to not completely give it away. Ironically the company where I didn't give a duck liked me quite a bit. I took a few months off work and it did wonders for me. YMMV but good luck to you