The lore book will only spoil Divine Divinity and Beyond Divinity games, and won't spoil Divinity Original Sin 1 and 2. though playing DOS2 already spoils DOS1.
That's fine with me. I don't particularly mind those games being spoiled. As for playing DOS2 before DOS1 spoiling it, I already assumed that would be the case. Not worried about it.