It seems that there are no additional rules that come into play here, whether by invisibility or movement, so unless your monster has a trample ability, it cannot move through the Wizard's space, according to your quoted movement rule. (It feels a little strange that your Wyvern can't move over a weed-filled sorcerer, but imagine that he was trying to avoid an expelled Barbarian Orc who is also medium-sized and is probably trying to defend the Warlock, and it seems reasonable rule .)
So what should the Wyvern do?
First, it moves towards the Sorcerer and "cannot enter that space." If you were describing this to a player, you could say that they collide with an invisible force. Your player would not do any harm by accidentally entering an invisible monster, and neither would your Wyvern, despite the difference in size.
Now; Moving in 5e can be divided in as many ways as you want, so at this point, the Wyvern has several options:
Option 1: "The Wyvern guesses that the invisible force is the Sorcerer who has just disappeared." If the Wyvern has been paying attention, this might make sense, and if the Wyvern considers them a dangerous target, attacking them again is reasonable: attacking the invisible Sorcerer at a disadvantage. (It feels hard if your Sorcerer was really trying to avoid the attack, but you will teach your player to get out of the way.)
Option 2: "The Wyvern has no idea what the invisible force is and tries to push it away." – Use the Push a creature (which is also an Attack) rule at a disadvantage. If you successfully push them out of the way, keep moving to attack Warlock if you have attacks left.
Option 3: (If you are not fighting in a 10 foot wide corridor). "The Wyvern runs into something, and as you would in a frantic fighting situation, it just continues around it." – Move around the Sorcerer, which could provoke an attack of opportunity (which, if the Sorcerer does, your Wyvern could simply turn around and bite you; remember that you can always break your movement in response to the change of situation).
If you are in a 10-foot wide corridor, then you will have to choose one of the other two options, either using attack actions to push the invisible player until you can reach the Warlock or eventually deciding to attack the invisible player, depending on how stupid your creature is
With my players, I am in favor of Option 3, but if you want to show your players that Invisibility is not Invulnerability (as some players think) go for 1, and yours will soon learn to get out of the way.