Per 《
新华成语词典》:
思绪 = thought-strands;
万千 = vast multitude. 'Thought-strands by the ten-thousand-thousand' — your mind is a tangled skein you can't put down. The set phrase has no single classical source but appears throughout late-imperial vernacular fiction as a stock description of pensive, sleepless characters.