True, they say food takes a big bite out of sildenafil effectiveness.
Being in shape, regular cardio are both helpful.
But honestly, with all that, the mysteries of testosterone fluctuation past 60 probably cannot be completely controlled for, and OP’s strategy of cancellation when he senses the lack is better than soldiering through.
If this were too common a problem, I’d look into testosterone treatments from a urologist.