Lattice to avoid warping in 3D print part

you could try following this topic to trim a gyroid structure to fit your geometry… you will have to shell your part and use the inner shell voids to trim a gyroid which you could then fit inside your voids…

Gyroid Link

Specifically @DanielPiker 's file minsurf_trim.gh

Could get messy if you are mixing meshes with surfaces… design your part with voids, then create the gyroid mesh to fit in the voids, save each as STLs and import them assembled into the 3d printer software. Not sure how your 3d printer software workflow is though.