merge() failed in the lapply loop

Can you provide a reproducible example?