vendor/amasty/stockstatus/view/frontend/web/js/amstockstatus.js
Find the code in the _reloadContent
method:
this.nodes.spanElement.replaceWith(this.options[key]['custom_status']);
and add the following line after it:
this.nodes.spanElement = $(this.selectors.stock).first();
composer require swissup/module-breeze-amasty-stockstatus
bin/magento setup:upgrade --safe-mode=1