Gerund without "to be" verb
Solution 1:
[You / your not loving me] is my nightmare.
Both forms of the personal pronoun are perfectly acceptable, though the genitive (possessive) form "your" is considered slightly more formal by some speakers.
Other than that, there is no semantic difference.
Note that "not loving me" is a verb phrase serving as predicate of the bracketed subject clause.