Sometimes we encounter issues that we can not overcome no matter how many things we try or how much time we spend. This is especially true when doing an in-place upgrade. The cold hard fact is sometimes we are left with 2 choices.
1. restoring an image made before whatever caused the issue in the first place (which may or may not work because we do not always know what point in time event causes the failure in many cases).
OR
2. Bite the bullet, do a clean install, and get on with life.
I learned it the hard way when I restored multiple images trying to upgrade from 24h2 to 25h2 but eventually had to clean install to get there. Now I will always keep that clean install image into perpetuality, just in case.