I found that images can’t be copied or exported when headers are folded. Images contained in headers unfolded are not affected.
Don’t know it is a bug or design but if someone have a schedule backup while some notes have headers folded, he/she doesn’t know some attachments can’t be backed up.
To ensure everything is exported, one may need to unfold everything but you have to check every note before doing.