I tried safe mode too but still getting the same error.
Kindly help me to resolve this issue as soon as possible as this is getting really critical for us, no one is able to join any of the groups.
Note - I have upgraded all the plugins and my discourse is on latest version as of now.