Checkmk UI crashes : 502 bad gateway error when click recent event history

It would be good to take a look at the Apache log and if possible to provide the lines with the error message.
I have instance running inside Docker but without Event console.

One problem i see in your system is

If it is history of event console then it is very big and i think you have a resource problem inside your container.