Why do peanut butter sandwiches become hard and how to prevent that?
Oooh, I hate that. If you put butter on the bread to create a buffer layer between the peanut butter and the bread it may help. Also, be sure to seal the bread from the air to retard the process of getting stale.

The other main option is to keep the peanut butter in a separate container and spread it before eating.