That's not how it works. Photoshop reserves scratch disk space based on history and anticipated needs. So it depends on how many history states are still accessible and any other files you may have had open in the same session.
Photoshop doesn't crash over low memory as long as you have enough free disk space. 13 GB is really nothing. Scratch files can be in the several hundred GB range.