Saving contacts to the SIM card is precisely the problem. Strongly suggest you give up on storing anything on the SIM.
First, you can only store names and numbers on the SIM. No email addresses, physical addresses, notes, photos - no other information.
Second, there is fewer and fewer phones that even have an option to use SIM storage. In a year or two SIM storage will be gone. SIM storage of contacts is an old, outdated, dying technology that should not be considered a viable option anymore.
It is highly recommended that all contacts be saved as Google contacts. This provides automatic backup so contacts are not lost, online access and easy restoration to a new device.
Android since v1.0. Linux since 2001