Optical and X-ray studies of Be/X-ray binary 1A 0535+262 during its 2020 giant outburst