sfdp_iterate_next_largest_erase_type: fix size check and add alignment check
sfdp_iterate_next_largest_erase_type: fix size check and add alignment check

mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed,mbedmicro/mbed