Not sure how this might have happened
To Dave's point, do you have an idea how that got changed? If you don't, then my concern would be that other settings have been changed and even if you get that reset you might be fighting other oddities. In that case it might be safer to put up a new server as he suggested.
You can try psexec. That will let you run a command as the system account.
[https://learn.microsoft.com/en-us/sysinternals/downloads/psexec
psexec \\localhost -s sc config mpssvc obj= "NT Authority\LocalService"