Template gets created after error but then when trying to enroll learners, there is an error: Template not found. TemplateName: UserInformationCategory.
It looks like you've deleted the User Information web part from the enrollement template page you're using.
The User Information and Payment Type web parts are strictly required to be able to enroll in the course. Please get them back to the page and recheck the issue.