Hi All,
This problem may be with sql server(maybe sql server corrupted) , I also faced same problem in my local machine while taking schema script from my local db.
But I connected my local db from another machine and taken schema from import&export wizard , it is not throwing any issue .
Can you try this scenario.
Thanks,
RR.