I don't know exactly, but the mystical interpretation of some encounters is questionable.The Periplus is a Greek description. For instance, the word Gorillai appears nowhere else in Greek literature.Pliny identifies the Gorillai as gorgons or their heirs.Some scholars date the Periplus as early as the 5th century and others as late as the first, although both extremes rely on style and the testimony of later authors.
Here, enjoy,
Making Specimens in the Periplus of Hanno and its Imperial Tradition
Clara Bosak-Schroeder American Journal of Philology, Volume 140, Number 1 (Whole Number 557),Spring 2019, pp. 67-100 (Article)
(PDF) Making Specimens in the Periplus of Hanno and its Imperial
It is possible that an historical encounter between Hanno (or some-one else) and a great ape inspired the story preserved in the Periplus but the historicity of the account cannot be verified, nor would it necessarily have been known to ancient readers.