Safeguard for EMFILE in `init_project_template`