The first statement, “There is a metric ton of books in my backpack,” is an example of hyperbole, which is an exaggerated statement not meant to be taken literally.
The second statement, “My backpack stubbornly refuses all attempts to lift it, even when I use both hands,” is an example of personification, which is attributing human characteristics to non-human things.