Corrupt htaccess code being added

One of our website’s is constantly crashing due to an incorrect line of script appearing in the htaccess file.
I contacted my host again and their tech team said that there was a problem with a security plugin. They named WordFence, although I’ve used WordFence for years without any issues.
Could your advanced team take a closer look and try to find out where this line of code is coming from?