再構築時に空き容量の確保と埋め込みを繰り返すループに陥っている

Yet, things went wrong because I did exactly that:

So I guess this was a situation where a database upgrade was required.

Bur how do I know whether a database upgrade is required?