Is wearing a tawiz (such as a locket or an armband) permissible, and are symbols such as the hamsa allowed since people associate them with the occult and shirk?

Wearing tawiz is not shirk if you don’t believe that it will help you independently of Allah (swt).

I don’t know what Hamsa is