There’s not much you can do since adding chalk (which used to be common for both spinach and rhubarb) just creates the oxalate in the pan instead of your body and you can’t remove it. But cooking with lots of water (very short in the case of spinach) and throwing out the water does help to reduce the amount of oxalic acid.