I'm pretty sure that the standard MAX485 modules (with the pin organisation as you have drawn) are 5V devices. These should be fine for your Nanos but I don't know about your ESP32. Is the ESP32 5V tolerant. There are other RS485 modules that use a transceiver that will operate at 3.3V.
I test powering max485 with 3.3 it looks online, but the error still the same.