For FFT, the length must be a power of 2.
For other lengths, you must look at a more general implementation of the DFT. One example is the Chirp-Z transform.
I don't know if such IP-blocks are available.
Another solution could be to do a resampling of the input signal (change the sample rate) and then use a normal FFT block.