This has nothing to do with SFML.
I'm assuming you're not newing that array. Vertex array uses std::vector which uses dynamic memory from heap which is unlimited* and stack space(for things like arrays of static size, local variables, function calls) is very limited(around couple of MBs, system, compiler, settings etc. dependant, might seem like much but 1024^2 ints or floats is 1 MB) and not mandated by standard. Bjarne Stroustrup recommends not assuming anything about how much you're given there and use handles to heap when you need large amounts of space.
*Ram
is physically limited, but running out of
that is quite hardcore and system might start swapping to fake even more. Also running out of heap space is recoverable from(you can start catching the bad_allocs that get thrown and start freeing), while running out of stack space is not(I think) because your program insta-dies with seg fault or stack corruption(or something similar sounding
) because no more autos or calls can be made at all.