Hello,
you cannot change the sector size, so you need to align the overall size according the sector size. It's controlled by BSP macro BSPCFG_FLASHX_SIZE.
Anyway, the actual size you'll get is dependant on the available free flash after your code. If your requested size doesn't fit there, you'll get runtime error during installation of flashx.
PetrM