I'm using a shapefile from Statistics Canada, available here. This file maps Forward Sortation Areas (FSAs), which are the leading three characters of a Canadian postal code. When I try to add a new field, I cannot truly save it, as QGIS freezes up on me. When I open the file again, while most entries were saved, rows for territorial FSAs (CFSAUID starting with X or Y) are null. I've tried QGIS versions starting with QGIS 2 and I am up to 3.22.4 LTR Białowieża, with the same behaviour.
My minimum working example has been to create a new field with the field calculator to return a 1 for LANDAREA>5000 and 0 otherwise. Then, I try saving the attribute table with the freeze up and incomplete results as described above.
Is the operation invalid somehow, is there an issue with the shape file, or something else? I'm at a loss now.