Hi @Gal, Ofer (Israel),
As per experience, it is near to impossible to change the template once you create the site collection. Microsoft has built a structure in each template once you change your existing site collection template then many features not supported in other template and throws the error.
In your case, I'm afraid you have to build a new site using template STS#3 and migrate the old site to the new one using 3rd party tool as an alternative.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.