If you’re bending the duration for flavor, just bend the other requirements too.
This is a cool backstory and character introduction idea that has no effect of game balance or mechanics, so just ignore game balance and mechanics for the sake of introducing your character in a cool way. You’re already making a concession on how the spell’s duration works, so you should fit it into the narrative however you like, ignoring other rules details for the sake of writing a cool and fun story. So for things like this, just work with your DM to work this into the narrative.
As for the actual question asked here, the CR of a player character is going to vary wildly based on their build. Two PCs of the same level could have vastly different CRs depending on how well optimized they are for combat, so there is no clean formula for converting character level to challenge rating.