Adjust performance beyond standard limits for a non-K coffee lake chipset.
Check if your H310 board supports boosting the I5-9400F to 4.1 GHz all-core.
You cannot do that.
Neither the 9400f nor the h310 allow overclocking, therefore no.
others suggest adjusting the BIOS settings to configure your chip for a single-core configuration across every core
If your BIOS allows multi-core optimization, that's the case. The best way to confirm is by testing it.
Perhaps despite my reservations, especially with a budget chipset such as the H310. Sorry.