It depends on what are you making a game of and how it ends up looking, some companies dont mind even if you use a similar or even the same-name title, some dont (avoid making silent hills (´=ω=`) ).
If your project ends up looking a lot like the thing is based on it may call unwanted attention which could result on a C&D to avoid "confusion" meaning "your project looks too much like ours and we dont want our consumers/fanbase thinking this is an official thing" so try to not make it too similar (or worse yet rip game assets).
The only 100% way to get a C&D is to monetize the end result if you explicitly say its a fan game/based on, so no monetized "Final Fantasy VII MV" fan remake will fly.
Doubt CAPCOM will ever care about my little Monster Hunter fan project as long as its not for sale, afterall its their idea.
You can call it "Invaders From Space - The RPG", thats totally "not" the original title and its perfectly safe. Name copyrights apply to the exact name, not similarities, check the huge amount of "knock-off" games for mobile that use this approach, it may be obvious but you cannot C&D or sue because "his name sounds like ours!" (unless of course you copied everything else and changed the title, but thats another story).