Increasing the number of quantum bits while preserving precise control of their quantum electronic properties is a significant challenge in materials design for the development of semiconductor quantum computing devices. Semiconductor heterostructures can host multiple quantum dots that are electrostatically defined by voltages applied to an array of metallic nanoelectrodes. The structural distortion of multiple-quantum-dot devices due to elastic stress associated with the electrodes has been difficult to predict because of the large micrometer-scale overall sizes of the devices, the complex spatial arrangement of the electrodes, and the sensitive dependence of the magnitude and spatial variation of the stress on processing conditions. Synchrotron X-ray nanobeam Bragg diffraction studies of a GaAs/AlGaAs heterostructure reveal the magnitude and nanoscale variation of these distortions. Investigations of individual linear electrodes reveal lattice tilts consistent with a 28-MPa compressive residual stress in the electrodes. The angular magnitude of the tilts varies by up to 20% over distances of less than 200 nm along the length of the electrodes, consistent with heterogeneity in the metal residual stress. A similar variation of the crystal tilt is observed in multiple-quantum-dot devices, due to a combination of the variation of the stress and the complex electrode arrangement. The heterogeneity in particular can lead to significant challenges in the scaling of multiple-quantum-dot devices due to differences between the charging energies of dots and uncertainty in the potential energy landscape. Alternatively, if incorporated in design, stress presents a new degree of freedom in device fabrication.