Sometimes if u crash with pet alive and dont log back, pet stays alive ig even without u eating food until it ends, then it dies. Items are dropping out from inventory if its full.
If non of this are the case then use link which poissie shared above.