This is for Staticmesh (Manually)
If you work with static mesh and they do not have collision you have to add it manually. UE5 does not yet have support to create dynamically (not at least that I know of) something similar.
To add it you have to go to the specific piece and in the static mesh panel:
This is for DynamicMeshComponent (Automatic)
Geometry Script Users Guide | Unreal Engine 5.1 Documentation

You have to be careful if Blueprint was compiled after having placed the n objects it will not work, for some reason I don’t know related to the profileName. Therefore, you will have to replace them one by one (If this is not your case, then lucky you)
Collision Response Reference in Unreal Engine | Unreal Engine 5.3 Documentation
Furthermore, a good practice would be not to leave anything in plain text. You can create an Enum and take the value you need. This way you ensure that you will never make a mistake.

