Hi ,
As by the photo shared by you , it is found that that the restoration that has been performed , contacts directly with the pulp tissue, that contains nerve and blood vessels . So there remain a chance of causing severe pain.
Next Steps
As a next step , I would like to suggest to consult with a dentist near to you to perform Root canal treatment.