It will not repair itself.
The sensor has a core made of iron plates surrounded by a copper wire coil.
If the error is merely a problem of continuity at the connection, unplugging, cleaning, adding some silicone spray (lube and protect) then reconnecting might solve your problem.
If the error is caused by a fault in the encapsulation on the sensor itself, then the core will continue to corrode until it finally fails the coil. The corrosion causes swelling of the device. In the rear hubs, it makes it very difficult to remove a bad one. I don't recall how the front one is mounted, but it could be a similar arrangement.
Please look at this directly as soon as you are able. If the connector looks pristine (after unplugging and replugging), then you probably would do well to just buy a new sensor and replace the offending unit.