Cannot delete time periods

I didn’t check the code, but this sounds like a problem when checking if the time period is in use.
You could create a test site on the same machine, same version and try if the error also occurs there.