Theo....
......if you bought your loco locally and there is a track set up there , take two boxes ,one with the loco and one with your Wi-Fi setup and try out each at that shop.
I only mention this as your original post stated that this loco you have was a replacement . I ' assume 🙃 ' because the first had issues.