Can the notice period be deviated from?

The notice period is fixed. You sign for this and it is not flexible. If you have found a place elsewhere within the notice period, you can agree with the new organization that the commencement date will be adjusted to the notice period. After all, the commencement date is flexible!