To add to that - vacuum can also mess up sealed components that were manufactured at 1ATM. This is mostly a problem with electrolytic batteries and capacitors which puff up when the atmospheric pressure is removed. For batteries mitigations include manufacturing at low pressures or constraining the expansion mechanically.
Pretty sure a GoPro underwater housing would be perfectly capable of maintaining 1ATM in space. They are designed to handle many times that in external pressure.