Error when packaging

what i did to find the error was: make a copy of the game, then slowly delete folders/files, also remove references to deleted files then cook the game again. Repeat until error is gone, if you closed in on a folder/file you can double check by deleting it first then cooking. This is a tedious process that takes ages. This would also only work if you wanted to find corrupt files (and you don’t want to roll back to an earlier version via source control), but to my knowledge multiple things can make this error occur, not just corrupt files, i don’t know any solutions then