Zend certified PHP/Magento developer

Checkout issue – undefined method in getConfigurableAttributeCollection

We have issue on checkout. Will not redirect to the payment gateway in some cases. Help is welcome.

Magento 2.3.3.

Error:

Error: Uncaught exception ‘Error’ with message ‘Call to undefined method MagentoCatalogModelProductTypeSimple::getConfigurableAttributeCollection()’ in /home/ortlieb/public_html/vendor/magento/module-configurable-product/Helper/Product/Options/Loader.php:52

Error: Uncaught exception ‘Error’ with message ‘Call to undefined method MagentoCatalogModelProductTypeSimple::getConfigurableAttributeCollection()’ in /home/ortlieb/public_html/vendor/magento/module-configurable-product/Helper/Product/Options/Loader.php:52
in MagentoConfigurableProductHelperProductOptionsLoader::load called at /home/ortlieb/public_html/vendor/magento/module-configurable-product/Model/Product/ReadHandler.php (48) in MagentoConfigurableProductModelProductReadHandler::execute called at /home/ortlieb/public_html/vendor/magento/framework/EntityManager/Operation/Read/ReadExtensions.php (48) in MagentoFrameworkEntityManagerOperationReadReadExtensions::execute called at /home/ortlieb/public_html/vendor/magento/framework/EntityManager/Operation/Read.php (112) in MagentoFrameworkEntityManagerOperationRead::execute called at /home/ortlieb/public_html/vendor/magento/framework/EntityManager/EntityManager.php (70) in MagentoFrameworkEntityManagerEntityManager::load called at /home/ortlieb/public_html/vendor/magento/module-catalog/Model/ResourceModel/Product.php (648) in MagentoCatalogModelResourceModelProduct::load called at /home/ortlieb/public_html/generated/code/Magento/Catalog/Model/ResourceModel/Product/Interceptor.php (258) in MagentoCatalogModelResourceModelProductInterceptor::load called at /home/ortlieb/public_html/vendor/magento/framework/Model/AbstractModel.php (540) in MagentoFrameworkModelAbstractModel::load called at /home/ortlieb/public_html/vendor/magento/framework/Interception/Interceptor.php (58) in MagentoCatalogModelProductInterceptor::___callParent called at /home/ortlieb/public_html/vendor/magento/framework/Interception/Interceptor.php (138) in MagentoCatalogModelProductInterceptor::MagentoFrameworkInterception{closure} called at /home/ortlieb/public_html/vendor/magento/framework/Interception/Interceptor.php (153) in MagentoCatalogModelProductInterceptor::___callPlugins called at