What's different between the two sentences?

Hey, I'm watching a TV show, and there's a sentence:

I knew giving you that book was gonna come back and bite me in the ass.

Can I change it to:

I know gave you that book was gonna come back and bite me in the ass.


Solution 1:

No. The phrase "giving you that book" is the subject of the clause.

Solution 2:

I guess you are thinking that "knew giving" is some funny sort of compound verb, and wanting to move the past tense within it; but that's not how the sentence is structured. There is an omitted "that" (which can often be done in colloquial English), so the structure is:

"I knew [that [giving you that book] was ... ]"