The Galaxy A12 is a low-end slate Android smartphone released by Samsung in November 2020 as a successor to the Samsung Galaxy A11. Identifiable by model number SM-A125 (followed by version/carrier-specific character.
Your camera may be damaged, dirty, or faulty. Clean the camera and restart your phone to see if that fixes it. If not, it may be a software bug or you may have to replace the camera.