Thanks Eduard,
So thanks to your help, I can compile now. Whitespaces in paths are not allowed…
However, If I add this library to the PLCNextEngineer Project, Schedule the Program in a task, I now get the following runtime exception:

What could be the reason? Note: Still nothing changed in Code, it is the template. I also tried to do the same with PLCNextEngineer 2024 LTS instead of 2025.0.3, same result.