Thanks for the quick reply but no i have not opted into any of the beta's. I recently did a complete windows reinstall and have a completely fresh install of Factorio and the trainer. I used it last week before the update and all was fine but since the game update and trainer update i am getting the error.
For this particular game you HAVE TO opt-in the unstable branch 0.18.x