add_population <settlementname> -4000. I think this should get you past the crash.
For some reason when I tried this it wouldn't recognise any of the settlement names.