Is the stamp mandatory on the traineeship agreement?

Yes, the stamp is mandatory. If an educational institution does not have one, a confirmation email from the responsible person must be requested.