How can a library.properties-file cause an error no such file or directory?

It means exactly what the error message says - it CANNOT find the include file "KeyboardUTF8.h". So, wherever it is expecting to find that file, it isn't there. You need to figure out why.