If you can understand the reason for the dropout better, you’ll likely understand what the right remedy is. Yes, adding extra capacitors near the power supply lines of touchy components is often helpful. But, your power supply likely has much larger capacitors on its output than you can add there. And, if it’s dropping out for macroscopic amounts of time, capacitors won’t help. I’m not sure what your diodes would be for.