I played with the env variables.
That's
way too much details

ppc.library and powerpc.library can not be used at the same time. Remove ppc.library from LIBS: if it is installed, undo whatever you did with the WarpOS env variables or delete them and reinstall WarpOS.
Then try again.
picture.datatype in AmigaOS 3.5/3.9 is using the ppc for some operations if WarpOS is installed. If you have a background picture for your Workbench configured, that might explain the 'when' of the lockup.
As to why it locks up: no idea. Maybe some other software is being ran at startup that makes use of ppc.library instead of powerpc.library?