As others have mentioned, the new metaphlan 4.2.2 has changed some parameters (–bowtie2out became –mapout) so if you want to use the new metaphlan code you have to manually change the file as @Kapitch suggested, because humann is not yet compatible with metaphlan 4.2.2.
Another option would be to use humann 3.9 with metaphlan 4.1.1. Remember that humann 3.9 works with database version vJun23 ( Announcing HUMAnN 3.9 ) so specify both in metaphlan and humann the database as –index mpa_vJun23_CHOCOPhlAnSGB_202403