This is a wall-mounted network cabinet designed for patch panels and network, switches, etc. For a NAS with these dimensions, a server rack is more likely to be needed.
By the way, the installation depth of this wall cabinet is 450 mm. (The selected NAS is already 531.5mm long without cables). Better to buy a shelf and install a tower NAS if it is to be a wall cabinet/network cabinet.