Solved!!!
I don't understand what just happened :v, but I just reran my project to try fixing it again. I haven't made any changes yet; I simply retested concurrent requests using wrk as before. Surprisingly, the segmentation fault disappeared. I retested several times to make sure, and it really disappeared :)