The only thing I can think is that this is the wrong picture maybe?
In all Spanish mints in America the coins about 1789-1791 are of Charles IV with the portrait of his father Charles III. The dies with the portrait of the new king arrived to Lima from Spain in 1791.
Referee for Spain, Iberia (ancient), Suebi Kingdom and Visigothic Kingdom