Back in April 2024, I also found that I could not use UNO R4 although its Serial1() seemed to work fine at Full-Duplex, please see this post:
In general, I have stopped using that group of #define statements, and just set the DIR_DXL_PIN appropriately. I also have stopped using ping() and scan() from the D2A library as sometimes they worked for me and sometimes, they don’t. I just send direct DXL commands to my DXLs as I know their IDs anyway.
I did find that UNO R3 worked for me with DXLs, see previous item in this same post: