Yes a project like this you should be getting expert help on, ideally in person not relying on random internet posters. You will need to provide more details about the project and design such as the working voltage, pollution environment, isolation class, etc. Even assuming this is a personal project you should be designing it to the relevant safety standards even if you won't actually have it certified. And for a first design you should be following the standard recommendation rather than trying to push the limit especially on something as safety critical as a y class capacitor. Finally for mains operated equipment the layout and assembly are as important as the design and component selection. Make sure to get careful review of the layout and final assembly before powering on, and follow their advice, don't try to cut corners.
As a practical note: that capacitor is for EMI suppression. It sounds like you probably don't realise it's purpose in this circuit which is concerning. If this is a personal/ one off project you would be better off just omitting it than compromising safety. If course then it will be noisy as hell. If you have to get emc certified, then you are in a commercial production environment and you should already know the relevant safety and emc standards and certifications before even evaluating potential designs.
Not that I don't actually recommend designing a power supply without EMI suppression even as a learning experience. I am just saying it would be better than building it with a 1 mm clearance and a standard MLCC across the isolation barrier.