Do I need to replace the junction box when changing LED downlight
No, that's very unlikely to work, even if you do manage to find another one with the same connector.
The box you're looking at is not just a junction box, it's also the power supply for the LEDs - and it's specific to the type and number of LEDs in the fixture.