That time was priceless. I was able to fully decompress from past work stress (shocking how much you build up), get my gaming fix out of the way, and then move on to be incredibly productive with self-driven education with coding things I'd wanted to learn.
I also had a massive amount of creativity come back to me because I was well rested and not stressed or distracted.
If you are ever in a position to do something like a multi month or year break in between jobs, I can't recommend it enough.
If you are in the financial situation to do it I would recommend. Granted I work in a location where no one cares if you have a two year gap, let alone a two month, on your resume.
The real trick is not just bum around the entire time otherwise then yes it was probably a bad call.