As it started when you had an electrical problem, it may be possible that the TCM got confused. Seen several identical problems over in the F150 forum when battery ran low. Most fixed after battery jumped and restart. Some trannys were fixed by dealer applying a
Could always try a Transmission Control Module reset.
This website describes how.
https://www.replicarclub.com/how-to-reset-ford-transmission/#How_to_Reset_Ford_Transmission
This website described a different process.
https://cookip.com/reset-transmission-control-module-for-ford/
In either case, its a simple procedure and doesnt take very long to complete.