Is this word order acceptable?
"I can't [really] imagine a situation
very well when in which this sentence makes sense." sounds better; Here,
which serves as the relative pronoun for your antecedent. "Very well" doesn't quite fit there, but I think inserting "really" earlier in the sentence preserves its intent.
If the context is related to something you're writing, this might be more natural-sounding: "I can't really imagine any place where this sentence would make sense". The word "situation" slightly implies that human interaction is involved. If that was your intention, maybe "I can't really imagine a situation in which saying this sentence makes sense" would be best.
Hope that was helpful!