Nothing to see here, please move along. (I don’t see an option to delete my own post or change the title.)
Did the old kernel run OK with 5x640 blocks and higher ?
I’d suspect that your code is asking a malloc or memcopy to the device for more space than you intended.