Checkmk 2.1.0: EventConsole "Generate Event" button causes "Internal Server Error" message

CMK Version: 2.1.0p2, 2.1.0p3, 2.1.0p4 CEE

OS version: SLES12 SP5

Error description: When trying to create a event (snmptrap) out of the Event Console with “Generate Event” button a “Internal Server Error” is shown

Error message (GUI): "Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at nobody@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log."

Error message (/var/log/apache2/access_log):
xxxx - - [29/Jun/2022:21:35:20 +0200] “GET /xxx/check_mk/wato.py?csrf_token=xxx&filled_in=simulator&_transid=1656531316%2F1315839210&event_p_text=SNMPv2-MIB%3A%3AsysUpTime.0%3A+599190+%2C+SNMPv2-MIB%3A%3AsnmpTrapEnterprise.0%3A+ONCOMMAND-MANAGER-MIB%3A%3AnetappOnCommandUnifiedManager+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumSystemId.0%3A+3xxx+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventName.0%3A+Volume+Space+Full+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSeverity.0%3A+error+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventImpactLevel.0%3A+risk+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventTimestamp.0%3A+1550663647+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventMessage.0%3A+error+event+on+ora_xxx%3A%2Fora_xxx_temp+%28Volume+Space+Full%29+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventMessageDetails.0%3A+The+volume+is+93.51%25+full+%28using+51.43+GB+of+55.00+GB%29.+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceResourceKey.0%3A+8xxx%3Atype%3Dvolume%2Cuuid%3D9xxx6+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceFullName.0%3A+ora_xxxb%3A%2Fora_xxx_temp+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceType.0%3A+volume+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceHealthStatus.0%3A+error+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceScopedResourceKey.0%3A+8xxxe%3Atype%3Dvserver%2Cuuid%3D7xxxe+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceScopedFullName.0%3A+ora_xxx+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceClusterResourceKey.0%3A+8cxxxe%3Atype%3Dcluster%2Cuuid%3D8xxxe+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventSourceClusterFullName.0%3A+pxxx+%2C+ONCOMMAND-MANAGER-MIB%3A%3AocumEventState.0%3A+new&event_p_application=SNMPv2-SMI%3A%3AzeroDotZero&event_p_host=pxxx&event_p_ipaddress=1xxx&event_p_priority=exxx&event_p_facility=exxxf&event_p_sl=5fxxx&event_p_site=xxx&mode=mkeventd_rule_packs&_generate=Generate+event HTTP/1.1” 500 529