4.7.* to 4.8.* Migration Issues

I’ve gotten this error on both my prod server and my local dev environment. I believe it stems from db migrations on postgres but I haven’t been able to find a cause or solution. On my prod server the problem fixed itself after some time. This could potentially point to a primary key indexing error (which is an ongoing issue when working with postgres and an import/export plugin).

I just wanted to add a +1, this bug definitely exists somewhere.