My brothers ceiling is too low in the basement so he removed the light fixture and had the wires just capped there.
I took the measurements and made one and used designed this simple cap to put in insert Brass Thread M3.
There were just to mark the spot to use a Dremel to file down to fit perfectly in place.
I used PETG since PLA could have melted with potential heat.