#14897: Enhance error messages of struct.pack and struct.pack_into

Patch by Matti Mäki.