You and your computer can make backups that preserve all of your files in case of this happening. The following articles may be useful: how to back up a mac, how to back up a mac without time machine.
It shouldn't wipe your data if you choose the "Resize" option, as it can only use free space. However, there is ALWAYS a risk when editing an OS partition, so...