I'm twice your age. I wouldn't worry. Will things change? Of course. When I was your age the software world couldn't shut up about how programmers would be replaced with UML diagrams. XHTML was gonna be the next big thing for the web, and a social feed was a collection of RSS XMLs.
So, as someone who was also unsure of things once, and also have an interest in physics and engineering at your time: Chances are, even if you pivot to one of those focuses, you'll end up in programming anyways. A lot of physics majors end up in programming, many computer and electrical engineers end up in programming. There's just more of those jobs available. I should know, I was a computer engineering major, I worked in embedded firmware for 2 years before I was pulled back in to web development. I wanted to design processors.
Don't worry about GPT. It's like saying VSCode is going to replace software engineers because it has autocomplete. It's going to make you more productive, it's not going to replace you.
So, as someone who was also unsure of things once, and also have an interest in physics and engineering at your time: Chances are, even if you pivot to one of those focuses, you'll end up in programming anyways. A lot of physics majors end up in programming, many computer and electrical engineers end up in programming. There's just more of those jobs available. I should know, I was a computer engineering major, I worked in embedded firmware for 2 years before I was pulled back in to web development. I wanted to design processors.
Don't worry about GPT. It's like saying VSCode is going to replace software engineers because it has autocomplete. It's going to make you more productive, it's not going to replace you.