I already resolved this; it was because my signedPreKeyId was too long, so I changed my makeID function to this below:
function makeID() {
return Math.floor(10000 * Math.random())
// const timestamp = Date.now()
// const random = Math.floor(Math.random() * 1000)
// return parseInt(`${timestamp}${random}`, 10)
}