I think I have experienced something similar, where I have to find the right configuration for some pattern, sometimes grounded in like how my sheets and blanket wrap around my body in order to create or fix some dream machine. It's not a fully formed concept, but I'm trying to fix it and arrange the pattern in my mostly-sleeping state - it's always impossible and I have to recognize what I'm doing, fully wake myself up, and then try to go back to sleep to get out of it.