Hello @Boss_Baby_1351 ,Welcome to forums!
I found two posts that might be helpful.
One suggests opening each Static Mesh and enabling “Nanite Support”. To identify which meshes don’t have it, you can use the “Nanite Visualization” mode (under the “Lit” menu in the viewport) and select “Mask” , Nanite meshes will appear green, while non-Nanite ones will show in red.
The other solution recommends switching the shadow method: instead of using Virtual Shadow Maps (enabled by default), you can switch to Shadow Maps, which may improve performance and prevent the error.