However, this specific random error definitely needs a basic warning with suggested solution, just so future devs who inevitably encounter the error don't have projects killed by a weird hardware quirk.
There's now a fix for this in the "New HuC" thread.
If you use the new build, you won't need to add/remove data from your project in order to get around the problem.