Appointments plugin is causing errors

What could be causing these problems? I deactivated everything and switched themes and uninstalled appointments. While doing that, when I reactivated appointments the site have some big issues.

the main issue is that the page loads really slow when it starts loading appointments.

how do I fix this?