I played the left formation below and it was illegal despite meeting the requirements on the first page. All players met their positions too.
The illegal problem arose as i changed a DMC for an AMC. Maybe there is a problem with the pitch being 4 players on my side and 6 on the opponents half on the field.