Clicking on day to add new event generates a "Event does not exist" box

Nextcloud version (eg, 20.0.5): 27.1.12
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 7.4): 8.1.2-1ubuntu2.14

The issue you are facing: When clicking on a day in the month view in calendar to create/add a new event, I get the following box:

Is this the first time you’ve seen this error? (Y/N): N