This question already has an answer here:
Casting Time: 1 action
Range: 60 feet
If I were to cast this spell, and either I or the target otherwise become greater than 60 feet away from each other during the duration, would the spell fail/end?
There is precedent in other spells like Witch Bolt which specifically says the spell ends if the target is outside the spell's range, but Phantasmal Force never specifies such a condition.