From Grok:
"Nikon's lossless compressed mode is truly lossless in the sense that no information is lost during the compression process. This means that the compressed image file retains all the original data from the uncompressed image, allowing for the highest possible image quality.
However, it's worth noting that Nikon's lossless compressed mode does not compress the image as much as the lossy compression mode. As a result, the file size of a lossless compressed image will be larger than that of a lossy compressed image, but smaller than an uncompressed image.
So, to answer your question: Yes, Nikon's lossless compressed mode is truly lossless, but it strikes a balance between file size and image quality."
I've used lossless compressed with my D850 for several years now and haven't seen any compression artifacts. This is from an Electrical Engineer who got my masters in image processing.