First attempt at placing an order does not work

I am having an issue on checkout of meal-box subscriptions. When a new user/email not yet registered places and order, it shows an error but doesn't say what the error is but a new user account email is sent out. I then have to submit the order 1-2 more times for it to go through with test card.VIDEO: https://www.loom.com/share/b37f58d2300a436390c0335d55f979d5LOGS: I'm seeing this error occurring quite regularly on both staging and production. The error does not occur when using one of WordPress default themes so this leads me and 2 other developers to think it's a Madang Theme issue.[15-Jul-2022 07:49:47] WARNING: [pool site-macrobites.mysites.io] child 48 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on null in /www/wp-content/plugins/subscription-box/includes/class-wcbab-subscription.php:207"STAGING: https://macrobites.staging.mysites.io/meal-box-subscription/I'm also noticing slow performance and weird caching issues even when I clear the cache but the main issue it users not being able to checkout.Please advise.