The part of the broken code you have mentioned is not coded by us. It’s the additional code that has been rendered through some Customized code or some external plugins.
Please once check my deactivating the plugins one be one or if you have customized the Theme code then please check by removing it and let us know if the issue still persist.