Your issues may be entirely different from mine, so take everything with a grain of salt. But for me, erectile function is very tightly correlated with the ratio of fluid to electrolytes and carbohydrates. If I stuff in massive amounts of carbs and salt, and some fat, with minimal fluid, erectile function tends to be good. If I do the opposite, especially overdoing fluids, things go to sh*t. Some things widen the window a little, good sleep habits, sunlight, walking a lot, among others. But the window is still quite tight, I can crash sexual function with 2-3 glasses of pure water, easily. Maybe just try a meal of potatoes and steak with butter, and tons of salt, and no, or minimal fluid with it, to the point that you are slightly thirsty. If that doesn't work, your situation is likely very different from mine.