Thrasio, a startup that in recent years bought up dozens of consumer brands sold on Amazon, is working with advisers to explore restructuring options as it contends with a postpandemic slump in online spending, according to people familiar with the matter.