A lot of low-profile split ergonomic keyboard cases (3d printed) are flat or nearly-flat halves that surround the PCB.
Example: https://shop.beekeeb.com/products/presoldered-chocofi-split-...