My “laziness” was caused by little t trauma from childhood. I would stare at my editor and just start to cry at how I couldn’t bring myself to write code. I’m still working through it, but what has helped for me is taking space away from work, therapy, and the book The Road Less Traveled by Scott Peck. Good luck.