Joomla PLG_MAUTIC_ACCESS_TOKEN_NOT_VALID

I am not able to authorise the Joomla plugin to use Mautic API over OAuth2.

Code:
ERROR plg_mautic PLG_MAUTIC_ACCESS_TOKEN_NOT_VALID
INFO plg_mautic Authorize method called.
When doing so I need to login to Mautic and then get redirected back to Joomla with a state and code in the URL ending up in a 500 Error:
Code:
302 https://web01.mydomain.net/?plugin=mautic&authorize=true 302 https://web01.mydomain.net/en/?plugin=mautic&authorize=true 302 https://www.mydomain.ch/ma/index.php/oauth/v2/authorize?client_id=6_64***&redirect_uri=https://web01.mydomain.net/&state=f8a***&scope=&response_type=code 302 https://web01.mydomain.net/?state=f8a***5&code=YjR*** 500 https://web01.mydomain.net/en/?state=f8a***&code=YjR*

What could cause that error?

Settings used for OAuth
Code:
array ( 'baseUrl' => 'https://www.mydomain.ch/ma/index.php', 'version' => 'OAuth2', 'clientKey' => '6_64***', 'clientSecret' => 'xf3***', 'callback' => 'https://web01.mydomain.net/', )

I am not able to authorise the Joomla plugin to use Mautic API over OAuth2.

ERROR 	plg_mautic	PLG_MAUTIC_ACCESS_TOKEN_NOT_VALID

INFO plg_mautic Authorize method called.
When doing so I need to login to Mautic and then get redirected back to Joomla with a state and code in the URL ending up in a 500 Error:

302 https://web01.mydomain.net/?plugin=mautic&authorize=true 302 https://web01.mydomain.net/en/?plugin=mautic&authorize=true 302 https://www.mydomain.ch/ma/index.php/oauth/v2/authorize?client_id=6_64***&redirect_uri=https://web01.mydomain.net/&state=f8a***&scope=&response_type=code 302 https://web01.mydomain.net/?state=f8a***5&code=YjR*** 500 https://web01.mydomain.net/en/?state=f8a***&code=YjR*

What could cause that error?

Settings used for OAuth

array ( 'baseUrl' => 'https://www.mydomain.ch/ma/index.php', 'version' => 'OAuth2', 'clientKey' => '6_64***', 'clientSecret' => 'xf3***', 'callback' => 'https://web01.mydomain.net/', )