I had this problem with my Rovals after converting to 12 x 142, when out of the frame spun perfectly, once clamped into the frame it wouldn’t free wheel. It turned out to be the seal between the hub main body and the free hub (I believe its metal backed and you have to punch it in with the proper tool or a hope one similar, really cheap to get a new one through LBS and get them to instal. When looking at the old versus the new one I and the shop couldn’t see any damage or difference but once installed there was no drag anymore and never had the problem again. I guarantee this will be your problem/solution 100%
PDF for DTSwiss 240 hubs
Its part no.6 on any of the rear hub diagrams, Labelled:
6. Seal hub shell/rotor part number: HSOXXX00N1031S