Hello Martin,
If using standard capacitor will solve the switching frequency problem but the ripple is too high then you could consider a second stage LC filter even though at that point you will need to use two extra components.
A second stage LC filter won’t have any effect on the loop stability but it can drastically reduce the output ripple.
Please let me know if you need any further help.
Regards,
Giuseppe