This is a tracking issue. At the time of writing, WFLY doesn't accept EE 10 changes.
For CDI 4, we changed empty beans.xml treatment as part of
WELD-2677 and introduced backward compatibility switch. This only solves it on Weld-side. In order to make this switch work for WFLY, we will need further changes there.
A draft of needed changes can be seen on my branch - https://github.com/manovotn/wildfly/tree/weld2677
Or in this comparison - https://github.com/wildfly/wildfly/compare/main...manovotn:weld2677?expand=1