You mentioned a few years ago, how was it handled during that time? Since they were boxed, I suppose you don't know the pre-storage condition. I only ask that because I've used many quart size bottles of oil that were at or approaching the 10 year mark, and I've never seen anything like that.
I see some Castrol Edge (blue bottle) in the photo and those look okay. The XPS must have been super old stock that the dealer gave you, was mishandled somehow or it's just junk packaging.
I would set the suspect oil in the sun for a few hours side by side with a known good quart of oil. If the suspect oil bottle feels compromised in any way compared to the other oil bottle: softer, thinner, easily ruptured, etc. -- basically anything that tells you the plastic is not right, I wouldn't use it.