runout sensors are pretty much pointless.
Partiaularly the ones based on endstops - which is most likely what you have.
The slicer will tell you how much filament you'll use. Look at the spool - do you have enough ?
if yes: print
if no: change spool and then print.
That's pretty much it.

Now if you had the fancy optical sensor that actually checked the filament was moving, they are useful as they will detect more common issues like blocked nozzles or dodgy extruders.

But the best thing you can do with standard mechanical endstop based 'run out' sensors, is to salvage the spare endstop (they are useful) and just not plug it in.
It serves no useful purpose.

The other possible culprits for your problem would be a cheap sd card. Most cheap printers ship with nasty fake sd cards that are best thrown away and replaced with a decent actual brand.
And also if you are printing over a usb cable - the cables the machines ship with are also best disposed of - any cable from a pound shop or buck store will be better quality :-)