Broken plugin causing docker container crash loop

I am using the nextcloud docker app on TrueNAS Scale, from truecharts.

I was using the server normally and it crashed. It did not restart normally as expected.
I keep getting refused to connect errors, and after troubleshooting with help from truecharts support, found a plugin to be the issue.

However, I am unable to use occ to disable the plugin from the command line as running occ will result in the same error.

I require a method to manually disable/delete the plugin. Deleting the relevant directory does not automatically disable it as suggested by some other posts.

Have you tried

php occ maintenance:mode --on

If so and it still troubles you:
Edit config.php and set it in maintenance mode directly in the config.php. Then in maintenance mode, disable the troublesome app using occ.