Some synonyms for "unwittingly" would be "ignorant of", "unaware of" or "uninformed about".
You could "unwittingly" offend someone if you did not know the customs of their country.
For example, I "unwittingly" made my Japanese daughter-in-law uncomfortable by highly praising her cooking.
I didn't realize that such high praise made her uncomfortable.
Some synonyms for "inadvertently" would be "careless", "uncaring" or "thoughtless".
For example, when my son poured the chocolate milk from the jug, he "inadvertently" spilt it on my white tablecloth.
He should have been more careful! He knew I wanted to keep that tablecloth clean. He should have poured the milk into his glass when he was in the kitchen.
Both words can mean "unintentional", but they imply additional reasons for the unintended actions.
Hope this helps.