Difficulty sleeping, nausea between meals, occasional headaches, generally feeling unwell. Could problems be liver or stomach related?

Yes. Your symptoms could be related to liver or stomach issues, or several other things. Best to see a dr. For a full clinical evaluation and get diagnosed son the best treatment can be undertaken, best wishes.