it’s possible for you to try running aMalwareBytesscan to identify and resolve any potential threats.
Windows 11: Access Denied When Modifying HOSTS or LMHOSTS file
Solve a problem where you cannot edit the LMHOSTS or HOSTS file in Microsoft Windows 11 because access is denied.