Is it possible to use the BERT model in Huggingface with different pre-training tasks such as PLM, DAE etc ?

Well anything is possible. If the question was, is there any example doing it already, the answer is no, so you would have to write the training scripts for those tasks.

Even if I use a different model class, can I still use it to BertFor… tasks ?

No, you can’t use a BertForxxx if you use a different class (eg. not a BertYyy) for your pretraining.