I also find these decisions very hard. I switched from NodeJS to Spring Boot some 5 years ago when I found that the JS community moved faster than my clients could pay me to keep up to date. It has been great to make apps in Java with Thymeleaf, until I wanted to add dynamic frontends (a lot of advantages vanished) or when I tried to put Java on my CV.
I am now considering switching to .NET and Angular.
I would be happy to have a talk on this topic: what directions to take as solo-dev. I find that a whole different set of requirements apply.