Hello, I have tried to upgrade JIRA 4.4 to 5.2.2 and after the upgrade I am getting blank pages in Summary and Issues list in any project.

When I try to click on Issues in the top menu I am getting the oops error message and the error from the errors.txt file attached.
(error.txt)
I have tried to clean the permissions schemes with the positions without any user or group with just delete buttons, checked notification schemes they are ok. I have also removed all the plugins before the import and exported the backup but still the issues are the same.
Does anyone saw such issues before? Any advice would be handy.
Thank you in advance.