Does anyone know why the foliage always flickering in ue5?

The mesh settings also matter, as well as the main directional light. Try to disable shadows to see if that is the cause, and use other shadow casting methods.