I am not familiar with the inner workings of Strapi. Seeing the SQL error got me all confused. Your post made me think its hard coded in a file. So a little digging and I found src/api/MYCONTENTYTYPE/schema.json, and the ID was set in Schema, so I deleted it and it works.
So that was easy. Perhaps it was a good thing to get the error so I can delve into part of its inner workings!
Thanks