Build CM4 and CM5 enclosures sized to the real Compute Module - including DF40 connector cutouts - from OEM mechanical data. Confirm millimeter fit on the fit sheet, then export a print-ready STL. Same wizard makers use for Pi, Arduino, and ESP32 boards.
Pick Compute Module 4 or Compute Module 5 in the board list, choose a look, toggle the openings you need, and print a case that matches the module - not a generic box with guessed holes.