Improve error messages when a record is unable to be created for a project
A number of customers have been bitten by invalid service templates (e.g. #25112 (closed)), where project creation and forks silently failed for no good reason. This MR improves the logging so that it's much clearer what is the problem.