Apparently I was never supposed to use withMemoryRebound like that and it finally started checking that in Swift 5