I'm wondering if the bike was stored for a while before your ride? The fuel pressure regulator is one of the common things to fail on our bikes and it wont send a code.
Also, are those two codes you found new ones, or is it possible they were old stored codes that hadn't been cleared?
Did you see them flash when you were riding, or upon attempts to restart?
Great idea to go thru all the connectors, especially the stator and reg/rec. Remember, dielectric grease is your friend.
The problem could also be coming from a weak battery, loose battery connections, or a compromise in the charging system - the stator or reg/rec or connectors.
Did your dashboard do anything weird, like reset?
Some testing of these components may be in order.