I have found 99% of the time when it gets stuck in this loop it is because the database is corrupt.
If you hold the control key to interrupt and once in windows, run the drive config from the desktop.
You will lose all the footage but it should solve your problem.