The error occurs when WordPress tries to load the REST API controller class but the core file is missing or unreadable. PHP throws a fatal error because the class definition does not exist.
This usually follows a failed update, corrupted file permissions, or a security breach that removes core files.