It’s not like you can’t test your script on another file first. If it works fine on a 1GB file with 300K lines, why wouldn’t it then work on the real file?
What would you do when the next time this happens it’s 300B lines from a 1PB file?
What would you do when the next time this happens it’s 300B lines from a 1PB file?