Arm® Architecture Reference Manual
Armv8, for A-profile architecture
Copyright © 2013-2021 Arm Limited or its affiliates. All rights reserved.
ARM DDI 0487G.b (ID072021)
No indication of this overflow is produced
A division by zero results in a zero being written to the destination register, without any indication that the division by zero occurred.
(that is why you find a = 0)

Please search fdiv to find information. floating divide has too many informati1, can not paste everything here.
It is also related to IEEE 754
a=0, b=inf inf=infinity
When you compile, compiler will give warning. You can change warning as error to stop compiling.
aarch64-linux-gnu-gcc -static -o div0 div0.c
div0.c: In function ‘main’:
div0.c:7:9: warning: division by zero [-Wdiv-by-zero]
int a=2/0;
^
div0.c:8:13: warning: division by zero [-Wdiv-by-zero]
float b=1.2/0;
^
Here is the assembly code for
int a=2/0;
float b=1.2/0;
.arch armv8-a
.file "div0.c"
.text
.section .rodata
.align 3
.LC0:
.string "a=%d, b=%f"
.text
.align 2
.global main
.type main, %function
main:
stp x29, x30, [sp, -48]!
add x29, sp, 0
str w0, [x29, 28]
str x1, [x29, 16]
mov w0, 2
mov w1, 0
sdiv w0, w0, w1
str w0, [x29, 44]
movi d0, #0
mov x0, 3689348814741910323
movk x0, 0x3ff3, lsl 48
fmov d1, x0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [x29, 40]
ldr s0, [x29, 40]
fcvt d0, s0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
ldr w1, [x29, 44]
bl printf
mov w0, 0
ldp x29, x30, [sp], 48
ret